function evt_btnQuery_onclick(){
  getDataViewHtml(document.SearchForm.keywords);
}
function getXmlDoc(){
  var xmlDoc=null;

  try{
    xmlDoc = new XMLHttpRequest();// for Mozilla, Firefox, Safari, Opera, etc.
    xmlDoc.overrideMimeType('text/xml');
  }
  catch(e){
    try{
      xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");// for IE
    }
    catch(e){
      alert("抱歉，您的瀏覽器不支援 XML HTTP Request");
      return null;
    }
  }
  return xmlDoc;
}
/**
 * 取得資產列表(依條件)
 * @parameter:owner_empno--保管人
 *            asset_status--資產狀態
 *            asset_no--財編
 * @call events:evt_btnQuery_onclick
 * @call to:
 */
function getDataViewHtml(keywords){
  //alert(keywords.value);
  //document.all.item('divDataView').innerHTML="test";return;
  xmlDoc=getXmlDoc();
  //alert(keywords.value);
  xmlDoc.Open("POST",encodeURI('/Ext/ext_search.jsp?prgAction=getData&dataKind=ext_list&keywords=' + keywords.value),false);
  xmlDoc.send();
  //alert(xmlDoc.responseText);
  document.getElementById('divDataView').innerHTML=xmlDoc.responseText;
}
